from tabnanny import verbose
from django.db import models
from recordsLibrary.models import Record

# Create your models here.

class Player(models.Model):
    nickname=models.TextField(verbose_name='昵称',max_length=30,null=False,blank=False)
    email=models.EmailField(verbose_name='邮箱')
    pwd=models.TextField(verbose_name='密码',max_length=30,null=False,blank=False)
    headShot=models.ImageField(verbose_name='头像',upload_to='headShot/',blank=True)
    createTime=models.DateTimeField(verbose_name='创建日期',auto_now_add=True)
    class Meta:
        verbose_name='已经注册玩家'
        verbose_name_plural='已注册玩家'

class registerRecord(Record):
    ic=models.IntegerField(verbose_name='验证码')
    success=models.BooleanField(verbose_name='注册状态')
    class Meta:
        verbose_name='注册记录'
        verbose_name_plural='注册记录'

class identifyingCodeRecord(Record):
    ic=models.IntegerField(verbose_name='验证码')
    success=models.BooleanField(verbose_name='注册状态')
    class Meta:
        verbose_name='验证码记录'
        verbose_name_plural='验证码记录'